/*
 * Created on 2008-9-16
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package control;

import java.util.Calendar;

public class Test {
	public  long getI(){
		 long i=Math.round(Math.random()*100)+1; 
		 return i;
	}
public String getTime(){
	Calendar now=Calendar.getInstance();
	 String time=now.get(Calendar.YEAR)+"-"+(now.get(Calendar.MONTH)+1)+"-"+now.get(Calendar.DAY_OF_MONTH)+" "+now.get(Calendar.HOUR_OF_DAY)+":"+now.get(Calendar.MINUTE)+":"+now.get(Calendar.SECOND);
	return time;
}
public static void main(String []args){
	
	 long i=Math.round(Math.random()*100)+1; 
	 System.out.println(i);
	 System.out.println(new control.Test().getI());
	 Calendar now=Calendar.getInstance();
	 String time=now.get(Calendar.YEAR)+"-"+(now.get(Calendar.MONTH)+1)+"-"+now.get(Calendar.DAY_OF_MONTH)+" "+now.get(Calendar.HOUR_OF_DAY)+":"+now.get(Calendar.MINUTE)+":"+now.get(Calendar.SECOND);
	 System.out.println(time);
}
}
